package com.zs.games.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;

@Data
@ApiModel(value = "UserCollectNews对象", description = "用户收藏新闻关联表")
@TableName("user_collect_news")
public class UserCollectNews {
    @ApiModelProperty(value = "用户ID", example = "1")
    private Integer userId;

    @ApiModelProperty(value = "新闻ID", example = "1")
    private Integer newId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    public UserCollectNews() {

    }

    public UserCollectNews(Integer userId, Integer newsId, Date createTime) {
        this.userId = userId;
        this.newId = newsId;
        this.createTime = createTime;
    }
}
